package com.ybbase.framework.model.po.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 组织机构用户表
 * </p>
 *
 * @author cg
 * @since 2019-11-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_organ_user")
@ApiModel(value="OrganUser对象", description="组织机构用户表")
public class OrganUser extends Model<OrganUser> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "机构编码")
    private Integer orgId;

    @ApiModelProperty(value = "用户编码")
    private Integer userId;

    @ApiModelProperty(value = "岗位编码")
    private Integer postId;


    @Override
    protected Serializable pkVal() {
        return this.orgId;
    }

}
